| Conditions | 1 |
| Paths | 0 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | import { createAction, handleActions } from 'redux-actions'; |
||
| 13 | 2 | export const selectServer = ({ findServerById }) => (serverId) => (dispatch) => { |
|
| 14 | 2 | dispatch(resetShortUrlParams()); |
|
| 15 | |||
| 16 | 2 | const selectedServer = findServerById(serverId); |
|
| 17 | |||
| 18 | 2 | dispatch({ |
|
| 19 | type: SELECT_SERVER, |
||
| 20 | selectedServer, |
||
| 21 | }); |
||
| 22 | }; |
||
| 23 | |||
| 28 |